import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'home',
        component: () =>
            import ( /* webpackChunkName: "home" */ '@/views/Home.vue')
    },
    {
        path: '/about',
        name: 'about',
        component: () =>
            import ( /* webpackChunkName: "about" */ '@/views/About.vue')
    },
    {
        path: '/token',
        name: 'token',
        component: () =>
            import ( /* webpackChunkName: "token" */ '@/views/Token.vue')
    },
    {
        path: '/solidity',
        name: 'solidity',
        component: () =>
            import ( /* webpackChunkName: "solidity" */ '@/views/Solidity.vue')
    },
    {
        path: '/react',
        name: 'react',
        component: () =>
            import ( /* webpackChunkName: "react" */ '@/views/React.vue')
    },


]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router